package com.ml.mall.entity.industry;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_a_industry")
public class Industry {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 创建时间
     */
    @TableField(value = "create_at",fill = FieldFill.INSERT)
    private Date createAt;
    /**
     * 更新时间
     */
    @TableField(value = "update_at",fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;
    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    private Integer isDelete;
    /**
     * 产业名称
     */
    @TableField(value = "industry_name")
    private String industryName;
    /**
     * 排序
     */
    @TableField(value = "index_no")
    private Integer indexNo;
    /**
     * 状态： 0：禁用 ， 1：正常
     */
    @TableField(value = "state",fill = FieldFill.INSERT)
    private Integer state;
}
